package com.rede.didiok.search.service;


import java.io.IOException;
import java.util.List;

import com.rede.didiok.common.dto.es.RankMemberEsModel;
import com.rede.didiok.search.vo.SearchParamVo;
import com.rede.didiok.search.vo.SearchResultVo;

public interface ESRankMemberService {


    /**
     *
     * @param param  检索的所有参数
     * @return 返回检索的结果,里面包含页面需要的所有信息
     */
    SearchResultVo search(SearchParamVo param);

    /**
     * 批量存入到 es 中
     * @param memberEsModels
     * @return
     * @throws IOException
     */
    Boolean bulkCreate(List<RankMemberEsModel> memberEsModels) throws IOException;

    /**
     * 批量更新文档
     *
     * @param memberEsModels
     * @return
     * @throws Exception
     */
    Boolean bulkUpdate(List<RankMemberEsModel> memberEsModels) throws IOException;

    /**
     * 批量从 es 中删除
     * @param docIds
     * @return
     * @throws IOException
     */
    Boolean bulkDelete(List<String> docIds) throws IOException;

}
